package com.longcai.cm.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.longcai.cm.domain.JaMemberCoupons;

import java.util.List;

/**
 * com.longcai.cm.dao
 *
 * @author LBX
 * @date 2024-08-02
 */
@Mapper
@Repository("jaMemberCouponsMapper")
public interface JaMemberCouponsMapper extends BaseMapper<JaMemberCoupons> {

    @Insert("<script>INSERT INTO ja_member_coupons(id,member_id,coupons_id,create_time,expire_time,status)VALUES<foreach collection='list' item='item'   separator=','> (#{item.id},#{item.memberId},#{item.couponsId},#{item.createTime},#{item.expireTime},#{item.status})</foreach> </script>")
    void saveList(List<JaMemberCoupons> list);

}